<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/libs/fileext/fileext.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fileext_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">fileext.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="fileext_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// Uncomment this line to enable downloading images from URL (requires `cUrl` library)</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// #define DOWNLOAD_IMAGES</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;../pugixml/pugixml.hpp&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacefileext.html">fileext</a> {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classfileext_1_1_file_extension.html">   32</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfileext_1_1_file_extension.html">FileExtension</a> {</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="classfileext_1_1_file_extension.html#a4b45726a2587126fecd7c9c5d7cacfe8">FileExtension</a>(<span class="keyword">const</span> std::string&amp; fileName);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classfileext_1_1_file_extension.html#a2f10caab354b404d975eec795d9c438c">~FileExtension</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classfileext_1_1_file_extension.html#a77924cbe2571ebf8e8158f6ebfd9020a">convert</a>(<span class="keywordtype">bool</span> addStyle = <span class="keyword">true</span>, <span class="keywordtype">bool</span> extractImages = <span class="keyword">false</span>, <span class="keywordtype">char</span> mergingMode = 0) = 0;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classfileext_1_1_file_extension.html#a301c1df2275a047415cf9ec324f29101">saveHtml</a>(std::string dir, <span class="keyword">const</span> std::string&amp; fileName = <span class="stringliteral">&quot;tmp.html&quot;</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classfileext_1_1_file_extension.html#a9d117c868bf67da5e32f6aea7fd753cd">loadStyle</a>(pugi::xml_node&amp; node, <span class="keyword">const</span> std::string&amp; fileName) <span class="keyword">const</span>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classfileext_1_1_file_extension.html#afa966fd47bfa24ff970ebf55aab00309">   82</a></span>&#160;    pugi::xml_document <a class="code" href="classfileext_1_1_file_extension.html#afa966fd47bfa24ff970ebf55aab00309">m_htmlTree</a>;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classfileext_1_1_file_extension.html#ab60dd620f126f6331f25467807389562">   86</a></span>&#160;    <span class="keyword">const</span> std::string <a class="code" href="classfileext_1_1_file_extension.html#ab60dd620f126f6331f25467807389562">m_fileName</a>;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classfileext_1_1_file_extension.html#ae8d527153f82f613e37f3fc278501601">   88</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classfileext_1_1_file_extension.html#ae8d527153f82f613e37f3fc278501601">m_addStyle</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classfileext_1_1_file_extension.html#ab0a092212f71b133b3b3ab25dd5cfcfd">   97</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="classfileext_1_1_file_extension.html#ab0a092212f71b133b3b3ab25dd5cfcfd">m_mergingMode</a> = 0;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classfileext_1_1_file_extension.html#a408937e2640340f74f04fee19393d6bd">   99</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classfileext_1_1_file_extension.html#a408937e2640340f74f04fee19393d6bd">m_extractImages</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classfileext_1_1_file_extension.html#a1d9d390d5bfb40b1bad3fbf003077a27">  101</a></span>&#160;    std::vector&lt;std::pair&lt;std::string, std::string&gt;&gt; <a class="code" href="classfileext_1_1_file_extension.html#a1d9d390d5bfb40b1bad3fbf003077a27">m_imageList</a>;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;};</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;}  <span class="comment">// End namespace</span></div><div class="ttc" id="classfileext_1_1_file_extension_html_ab60dd620f126f6331f25467807389562"><div class="ttname"><a href="classfileext_1_1_file_extension.html#ab60dd620f126f6331f25467807389562">fileext::FileExtension::m_fileName</a></div><div class="ttdeci">const std::string m_fileName</div><div class="ttdef"><b>Definition:</b> fileext.hpp:86</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_ae8d527153f82f613e37f3fc278501601"><div class="ttname"><a href="classfileext_1_1_file_extension.html#ae8d527153f82f613e37f3fc278501601">fileext::FileExtension::m_addStyle</a></div><div class="ttdeci">bool m_addStyle</div><div class="ttdef"><b>Definition:</b> fileext.hpp:88</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_ab0a092212f71b133b3b3ab25dd5cfcfd"><div class="ttname"><a href="classfileext_1_1_file_extension.html#ab0a092212f71b133b3b3ab25dd5cfcfd">fileext::FileExtension::m_mergingMode</a></div><div class="ttdeci">char m_mergingMode</div><div class="ttdef"><b>Definition:</b> fileext.hpp:97</div></div>
<div class="ttc" id="namespacefileext_html"><div class="ttname"><a href="namespacefileext.html">fileext</a></div><div class="ttdoc">Interface for file extensions. </div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html"><div class="ttname"><a href="classfileext_1_1_file_extension.html">fileext::FileExtension</a></div><div class="ttdoc">Base class for file extensions converters. </div><div class="ttdef"><b>Definition:</b> fileext.hpp:32</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_a301c1df2275a047415cf9ec324f29101"><div class="ttname"><a href="classfileext_1_1_file_extension.html#a301c1df2275a047415cf9ec324f29101">fileext::FileExtension::saveHtml</a></div><div class="ttdeci">void saveHtml(std::string dir, const std::string &amp;fileName=&quot;tmp.html&quot;) const</div><div class="ttdoc">Save HTML-tree to file. </div><div class="ttdef"><b>Definition:</b> fileext.cpp:25</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_a77924cbe2571ebf8e8158f6ebfd9020a"><div class="ttname"><a href="classfileext_1_1_file_extension.html#a77924cbe2571ebf8e8158f6ebfd9020a">fileext::FileExtension::convert</a></div><div class="ttdeci">virtual void convert(bool addStyle=true, bool extractImages=false, char mergingMode=0)=0</div><div class="ttdoc">Convert file to HTML-tree. </div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_afa966fd47bfa24ff970ebf55aab00309"><div class="ttname"><a href="classfileext_1_1_file_extension.html#afa966fd47bfa24ff970ebf55aab00309">fileext::FileExtension::m_htmlTree</a></div><div class="ttdeci">pugi::xml_document m_htmlTree</div><div class="ttdef"><b>Definition:</b> fileext.hpp:82</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_a9d117c868bf67da5e32f6aea7fd753cd"><div class="ttname"><a href="classfileext_1_1_file_extension.html#a9d117c868bf67da5e32f6aea7fd753cd">fileext::FileExtension::loadStyle</a></div><div class="ttdeci">void loadStyle(pugi::xml_node &amp;node, const std::string &amp;fileName) const</div><div class="ttdoc">Load specific format style. </div><div class="ttdef"><b>Definition:</b> fileext.cpp:72</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_a408937e2640340f74f04fee19393d6bd"><div class="ttname"><a href="classfileext_1_1_file_extension.html#a408937e2640340f74f04fee19393d6bd">fileext::FileExtension::m_extractImages</a></div><div class="ttdeci">bool m_extractImages</div><div class="ttdef"><b>Definition:</b> fileext.hpp:99</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_a4b45726a2587126fecd7c9c5d7cacfe8"><div class="ttname"><a href="classfileext_1_1_file_extension.html#a4b45726a2587126fecd7c9c5d7cacfe8">fileext::FileExtension::FileExtension</a></div><div class="ttdeci">FileExtension(const std::string &amp;fileName)</div><div class="ttdef"><b>Definition:</b> fileext.cpp:22</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_a1d9d390d5bfb40b1bad3fbf003077a27"><div class="ttname"><a href="classfileext_1_1_file_extension.html#a1d9d390d5bfb40b1bad3fbf003077a27">fileext::FileExtension::m_imageList</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; std::string, std::string &gt; &gt; m_imageList</div><div class="ttdef"><b>Definition:</b> fileext.hpp:101</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html_a2f10caab354b404d975eec795d9c438c"><div class="ttname"><a href="classfileext_1_1_file_extension.html#a2f10caab354b404d975eec795d9c438c">fileext::FileExtension::~FileExtension</a></div><div class="ttdeci">virtual ~FileExtension()=default</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_87a455bccb09a92130c26a11a880c98a.html">libs</a></li><li class="navelem"><a class="el" href="dir_ffbcd8de0e3a98e11beaf3347bc22514.html">fileext</a></li><li class="navelem"><a class="el" href="fileext_8hpp.html">fileext.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
